package com.jddup.test.pojo.mysql;

import com.baomidou.mybatisplus.annotation.*;
import com.jddup.common.annotations.ColumnDes;

import java.math.BigDecimal;
import java.util.Date;

@TableName("t_ws_market_trade_detail_req")
public class WsMarketTradeDetailReq {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("rep")
    private String rep;
    @TableField("amount")
    @ColumnDes(scale = 8)
    private BigDecimal amount;
    @TableField("price")
    @ColumnDes(scale = 8)
    private BigDecimal price;
    @TableField("direction")
    private String direction;
    @TableField(value = "create_time", updateStrategy = FieldStrategy.NEVER)
    @ColumnDes(isNullable = false,defaultValue = " DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
    private Date createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRep() {
        return rep;
    }

    public void setRep(String rep) {
        this.rep = rep;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getDirection() {
        return direction;
    }

    public void setDirection(String direction) {
        this.direction = direction;
    }
}
